﻿using CozeDomain.Entities;
using CozeDto.WithdrawalDtos;
using D.UtilCore.Dtos;
using D.UtilFreesqlOrm;

namespace CozeDomain.IServices
{
    /// <summary>
    /// 用户提现记录接口
    /// </summary>
    public interface IWithdrawalService : IBaseService<WithdrawalEntity>
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="reqAddWithdrawal"></param>
        /// <returns></returns>
        Task<ApiResult<int>> AddWithdrawalAsync(ReqAddWithdrawal reqAddWithdrawal);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<ApiResult<int>> DeleteWithdrawalAsync(List<string> ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="reqUpdateWithdrawal"></param>
        /// <returns></returns> 
        Task<ApiResult<int>> UpdateWithdrawalAsync(ReqUpdateWithdrawal reqUpdateWithdrawal); 

        /// <summary>
        /// 单个查询
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns> 
        Task<ApiResult<RepWithdrawalInfo>> GetWithdrawalAsync(string id);

        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="reqQueryWithdrawalPage"></param>
        /// <returns></returns>
        Task<ApiResult<PageModel<RepWithdrawalInfo>>> QueryWithdrawalPagesAsync(ReqQueryWithdrawalPage reqQueryWithdrawalPage); 
    }
}
